<?php
namespace app\api\controller;
use think\Input;
use think\Controller;
use app\common\controller\Base;
use app\admin\model\Areas;
class Area extends Base{
	/*地区数据列表*/
	public function items($pid=0){
		$areas = \app\admin\model\Areas::getAreas($pid);
		if($areas){
			return ['code'=>0,'items'=>$areas,'msg'=>'success'];
		}
		return ['code'=>-1,'msg'=>lang('Failed.')];
	}
	
}